﻿using UnityEngine;

//Version 1.1
// 快捷键与鼠标设置
// esc退出
// 鼠标是否隐藏

public class InitKeyMouse : MonoBehaviour
{
	[Tooltip("鼠标是否隐藏")]
	public bool if_mouse = true;

	// Start is called before the first frame update
	void Start()
	{
#if UNITY_EDITOR
		if_mouse = true;
#endif
		Cursor.visible = if_mouse;
	}

	// Update is called once per frame
	void Update()
    {
		if (Input.GetKey(KeyCode.Escape))
		{
			Application.Quit();
		}

	}
}
